import ajax from '@/api/apiConfig.js'

/* 获取多联网单位资产统计情况 */
export const getUnitACountForPc = (data) => {
  return ajax.get('assets/getUnitACountForPc', data)
}

/* 获取多联网单位资产统计情况 */
export const getUnitAInfoForPc = (data) => {
  return ajax.get('assets/getUnitAInfoForPc', data)
}

/* 获取资产信息状态统计 */
export const getAListForPcStatusCount = (data) => {
  return ajax.get('assets/getAListForPcStatusCount', data)
}

/* 获取资产信息列表 */
export const getAListForPc = (data) => {
  return ajax.get('assets/getAListForPc', data)
}

/* 获取单位消防系统-资产类别树 */
export const getAssetsCategoryId = (data) => {
  return ajax.get('assets/getAssetsCategoryId', data)
}

/* 获取消防建筑物结构树 */
export const getFbsTree = (data) => {
  return ajax.get('fbs/getFbsTree', data)
}

/* 获取资产信息 */
export const getAInfo = (data) => {
  return ajax.get('assets/getAInfo', data)
}

/* 更新资产信息 */
export const updateAInfo = (data) => {
  return ajax.post('assets/updateAInfo', data)
}

/* 删除资产信息 */
export const delAInfo = (data) => {
  return ajax.post('assets/delAInfo', data)
}

/* 根据联网单位获取维保公司列表 */
export const getAMCs = (data) => {
  return ajax.get('assets/getAMCs', data)
}

/* 新增维保公司 */
export const updateAMC = (data) => {
  return ajax.post('assets/updateAMC', data)
}

/* 按条件导出资产列表 */
export const exportAList = (data) => {
  return ajax.get('assets/exportAList', data)
}

/* 获取多单位维保计划列表 */
export const statOrgMaintainPlanDetailList = (data) => {
  return ajax.get('maintain/statOrgMaintainPlanDetailList', data)
}

/* 获取多单位维保计划列表 */
export const statOrgMaintainPlanDetail = (data) => {
  return ajax.get('maintain/statOrgMaintainPlanDetail', data)
}

/* 获取单单位维保计划列表 */
export const getdailyPlanDetailsList = (data) => {
  return ajax.get('maintain/getdailyPlanDetailsList', data)
}

/* 获取单单位维保计划状态统计 */
export const statMaintainPlanDetail = (data) => {
  return ajax.get('maintain/statMaintainPlanDetail', data)
}

/* 重新生成维保计划 */
export const regenerateMaintainPlan = (data) => {
  return ajax.get('maintain/regenerateMaintainPlan', data)
}

/* 新增更新维保计划 */
export const updateMaintainPlan = (data) => {
  return ajax.post('maintain/updateMaintainPlan', data)
}

/* 更新维保计划明细状态 */
export const updatePlanDetailStatus = (data) => {
  return ajax.get('maintain/updatePlanDetailStatus', data)
}

/* 获取维保标准详情 */
export const getMaintainStandard = (data) => {
  return ajax.get('maintain/getMaintainStandard', data)
}

/* 获取维保标准详情 */
export const getMaintainStandardList = (data) => {
  return ajax.get('maintain/getMaintainStandardList', data)
}

/* 获取资产维保记录 */
export const getMaintainRecordsByAssetsId = (data) => {
  return ajax.get('assets/getMaintainRecordsByAssetsId', data)
}

/* 获取资产类别列表 */
export const getACs = (data) => {
  return ajax.get('assets/getACs', data)
}

/* 删除资产类别 */
export const delAc = (data) => {
  return ajax.post('assets/delAc', data)
}

/* 更新资产类别 */
export const updateAc = (data) => {
  return ajax.post('assets/updateAc', data)
}

/* 故障维修单列表 */
export const getAssetsMaintenanceList = (data) => {
  return ajax.get('assets/getAssetsMaintenanceList', data)
}

/* 获取筛选过的资产类别 */
export const getAssetsCategoryIdWithAssets = (data) => {
  return ajax.get('assets/getAssetsCategoryIdWithAssets', data)
}

/* 获取资产统计-建筑物视图 */
export const getAssetsCountByFbs = (data) => {
  return ajax.get('assets/getAssetsCountByFbs', data)
}

/* 资产批量新增 */
export const batchAddAssets = (data) => {
  return ajax.post('assets/batchProcessAssets', data)
}

/* 资产类别快捷选项 */
export const assetCategoryQuick = (data) => {
  return ajax.getJSON(`config/assetCategoryQuick.json`, data)
}

export const batchSaveAssetsInfo = (data) => {
  return ajax.post(`assets/batchSaveAssetsInfo`, data)
}